﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

namespace MyVocationSpace.AJAX
{
    public partial class AddEducation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BAL.conn.connectionString = ConfigurationManager.ConnectionStrings["connectionstring"].ConnectionString;

            if (Request.QueryString["Course"] != null && Request.QueryString["College"] != null &&
                Request.QueryString["Year"] != null)
            {
                string Course= Request.QueryString["Course"];
                string College = Request.QueryString["College"];
                string Year = Request.QueryString["Year"];
                BAL.Users.InsertEducation(Convert.ToInt32(Session["UserID"]), Course, College, Year);               
            }

            Response.End();
        }
    }
}